package cn.csust.net2.manager.shared.service;

import java.util.List;

import cn.csust.net2.manager.shared.po.Authority;
import cn.csust.net2.manager.shared.po.Role;
import cn.csust.net2.manager.shared.util.ServiceConstant;

import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/** 
 * @author 韩忠金
 * @version 创建时间：2012-1-30 上午10:40:10 
 * 类说明 
 */
@RemoteServiceRelativePath(value = ServiceConstant.MANAGER+ServiceConstant.SERVICE_NAME_AUTHORIZATION)
public interface AuthorizationService extends BaseService{
	public List<Role> loadRole(Long userId);
	public List<Role> loadRoles();
	public List<Role> addRole(Long userId,int roleId);
	public List<Role> deleteRole(Long userId,int roleId);
	public List<Authority> loadAuthorityById(int roleID);
}
